package com.baosight.risk.web.system;

import com.baosight.risk.common.result.AjaxResult;
import com.baosight.risk.service.system.entity.SysOperLog;
import com.baosight.risk.api.system.ISysOperLogService;
import com.baosight.risk.base.controller.BaseController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author duanyongqiang
 * <p>
 * 系统日志管理
 */
@Slf4j
@RestController
@RequestMapping("system/log")
public class SysOperLogController extends BaseController {


    @Autowired
    private ISysOperLogService operLogService;

    @GetMapping("list")
    public AjaxResult query(SysOperLog operLog) {
        startPage("create_time", "desc");
        return getResultPage(operLogService.fuzzyQuery(operLog));
    }

}
